package com.txby.platformCore.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.jck.mybatis.annotation.MysqlAutoPK;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * 行政区域-地区表
 * @author Administrator
 *
 */
@Data
@Entity
@Table(name = "sys_chinaRegion")
public class SysChinaRegion  {
	@Id
	@GenericGenerator(name="uuid",strategy="uuid")
	@GeneratedValue(generator="uuid")
	@Column(name = "id", unique = true, nullable = false)
    private String id;
	/**
	 * pk
	 */
	@MysqlAutoPK
	private Long id_;
	private Long code;//地区编码
	private Long parentCode;//parentCode上级地区编码
	private Long level;//地区等级
	private String regionName;//地区名称
 
}
